package com.gee.spring.boot.oauth2.auth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gee.spring.boot.oauth2.auth.entity.User;
import com.gee.spring.boot.oauth2.auth.mapper.UserMapper;
import com.gee.spring.boot.oauth2.auth.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gee
 * @since 2020-03-22
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Resource
    private UserMapper userMapper;
    @Override
    public User getByUserName(String username) {
        return userMapper.getByUserName(username);
    }
}
